<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="net.lunjin.util.Constants" %>
<%@ page import="net.lunjin.util.ProjectUtil" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>财经日历_财经日报_外汇财经日历_今日财经日历_每日财经日历_交易平台评测网</title>
<meta name="keywords" content="财经日历,财经日报,外汇财经日历,今日财经日历,每日财经日历">
<meta name="description" content="主要提供财经日历、外汇财经日历以及每日财经日历,实时更新财经日报和每天财经实时的外汇日历。">
<jsp:include page="/commonImport.jsp"/>
<link rel="stylesheet" href="<%=Constants.URL%>/css/calendar.css" type="text/css" />

</head>
	<style>
	<!--
	body {
	    font-family: Arial, Helvetica, sans-serif;
	    font-size:12px;
	    color:#666666;
	    background:#fff;
	    text-align:center;
	}	 
	* {
	    margin:0;
	    padding:0;
	}	 
	a {
	    color:#1E7ACE;
	    text-decoration:none;    
	}	 
	a:hover {
	    color:#000;
	    text-decoration:underline;
	}
	h3 {
	    font-size:14px;
	    font-weight:bold;
	}	 
	pre,p {
	    color:#1E7ACE;
	    margin:4px;
	}
	input, select,textarea {
	    padding:1px;
	    margin:2px;
	    font-size:11px;
	}
	.buttom{
	    padding:1px 10px;
	    font-size:12px;
	    border:1px #1E7ACE solid;
	    background:#D0F0FF;
	}
	#formwrapper {
	    width:860px;
	    margin:15px auto;
	    padding:20px;
	    text-align:left;
	    border:1px #1E7ACE solid;
	}	 
	fieldset {
	    padding:10px;
	    margin-top:5px;
	    border:1px solid #1E7ACE;
	    background:#fff;
	}	 
	fieldset legend {
	    color:#1E7ACE;
	    font-weight:bold;
	    padding:3px 20px 3px 20px;
	    border:1px solid #1E7ACE;    
	    background:#fff;
	}	 
	fieldset label {
	    float:left;
	    width:120px;
	    text-align:right;
	    padding:4px;
	    margin:1px;
	}	 
	fieldset div {
	    clear:left;
	    margin-bottom:2px;
	}
	.enter{ text-align:center;}
	.clear {
	    clear:both;
	}	
	.con {
	    padding:3px 20px 3px 77px;
	}
	-->
</style>
<body>
<div class="content">
	<jsp:include page="/top.jsp"/> 
	
    	<div class="header">
			<!-- 菜单 -->
			<div class="module blue mT10 wrapper w963">
				<div class="top">
					<div id="navMenu">
						<ul>
							<%for(int i=0;i<8;i++){ %>
								<li>
								<%String day = ProjectUtil.getDayOper("yyyy-MM-dd", i-1);
								String weekday = ProjectUtil.getWeekOfDate(ProjectUtil.StringToDate(day,"yyyy-MM-dd"));%>
								<a href="<%=Constants.URL %>/operation/calendar<%=i%>.html"><%=i==1?"今天":""%><%=i==2?"明天":""%><%=day%><font color="<%=weekday.equals("六")||weekday.equals("日")?"yellow":"#ffffff"%>">(<%=weekday%>)</font></a>
								</li>
							<%} %>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<!-- //菜单 -->
	
	
		<div class="channel-nav w960 center clear mt1">
		    <fieldset>
		        <legend><img src="<%=Constants.URL %>/images/calendar.gif" alt="pic"/> <font size="4" ><%=ProjectUtil.getDayOper("yyyy-MM-dd", Integer.parseInt(request.getAttribute("jspid").toString())-1)%>全球财经日历</font></legend>
		        <div>
					<%
					String jsp = "/WEB-INF/jsp/calendar/" + request.getAttribute("jspid") + ".jsp";%>  
					<jsp:include page="<%=jsp%>"/>
				</div>  
		    </fieldset>
		</div>
		
		
		<jsp:include page="/foot.jsp"/> 
	</div>
</body>

<script type="text/javascript"> 
$.fn.smartFloat = function() {
	var position = function(element) {
		var top = element.position().top, pos = element.css("position");
		$(window).scroll(function() {
			var scrolls = $(this).scrollTop();
			if (scrolls > top) {
				if (window.XMLHttpRequest) {
					element.css({
						position: "fixed",
						top: 0
					}).css("display","block");	
				} else {
					element.css({
						top: scrolls
					});	
				}
			}else {
				element.css({
					position: "absolute",
					top: top
				}).css("display","none");	
			}
		});
};
	return $(this).each(function() {
		position($(this));						 
	});
};
//绑定
$("#scrolldiv").smartFloat();
$("#scrolldiv").css("display","none");
</script>

</html>